package com.lagou.mybatis;

import org.apache.ibatis.session.SqlSession;
import org.apache.ibatis.session.SqlSessionFactory;
import org.apache.ibatis.session.SqlSessionFactoryBuilder;

import java.io.IOException;
import java.io.InputStream;

public class MybatisDemo {
    public static void main(String[] args) {
        SqlSessionFactory build = new SqlSessionFactoryBuilder().build(new InputStream() {
            @Override
            public int read() throws IOException {
                return 0;
            }
        });
        SqlSession sqlSession = build.openSession();

    }
}
